package com.YxyBackMange.Service.Ware.Impl;
import com.YxyBackMange.Entity.Ware.WareCollection;
import com.YxyBackMange.Mapper.Ware.WareCollectionMapper;
import com.YxyBackMange.Service.Ware.WareCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareCollectionServiceImpl implements WareCollectionService{
	
	@Autowired
    private WareCollectionMapper wareCollectionMapper;
    
   @Override
   public WareCollection insertService(WareCollection wareCollection){
        wareCollectionMapper.insertSelective(wareCollection);
	   return wareCollection;
	   
   };
   @Override
   public WareCollection updateService(WareCollection wareCollection){
	     wareCollectionMapper.updateByPrimaryKeySelective(wareCollection);
        return wareCollection;
   };
    @Override
    public WareCollection update(WareCollection wareCollection) {
        wareCollectionMapper.updateByPrimaryKeySelective(wareCollection);
        return wareCollection;
    }
   @Override
   public WareCollection delete(WareCollection wareCollection){

	     wareCollectionMapper.delete(wareCollection);
        return wareCollection;
   };
    @Override
    public WareCollection insert(WareCollection wareCollection){

        wareCollectionMapper.insertSelective(wareCollection);
        return wareCollection;

        };
}
